package es.bean;

import lombok.Data;
import org.dromara.easyes.annotation.HighLight;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

@Data
@IndexName("company_name")
public class CompanyName {

    @IndexId(type = IdType.CUSTOMIZE)
    private Integer id;

    @HighLight(preTag = "<text style='color:#FFA303'>",postTag = "</text>")
    @IndexField(fieldType = FieldType.TEXT,  analyzer = "ik_max_word")
    private String companyName;

    @HighLight(preTag = "<text style='color:#FFA303'>",postTag = "</text>")
    @IndexField(fieldType = FieldType.TEXT,  analyzer = "ik_max_word")
    private String legalName;

}
